<?php

namespace common\models\shop;

use Yii;

/**
 * This is the model class for table "{{%shop_favorite}}".
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property int $store_id 店铺ID
 * @property int $product_id 商品ID
 * @property int $goods_id 商品SKUID
 * @property int $created_at 收藏时间
 * @property int $updated_at 更新时间
 */
class ShopFavorite extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%shop_favorite}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['user_id', 'store_id', 'product_id', 'goods_id', 'created_at', 'updated_at'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'store_id' => '店铺ID',
            'product_id' => '商品ID',
            'goods_id' => '商品SKUID',
            'created_at' => '收藏时间',
            'updated_at' => '更新时间',
        ];
    }

}
